<%@ page language="java" pageEncoding="UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <base target="_self">
    <title>用户组关系</title>

    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">

    <%@include file="../../common/Include_input_head.jsp" %>
    <script type="text/javascript">
        detailPageStyle();

        validate_required_fields = [
            {fieldId: "superGroupid", message: "用户组名称不能为空！", mustMatch: true}
        ];
        function dosave() {
            if (isValidateForm()) {
                submitForm();
            }
        }
    </script>


</head>

<body style="text-align:center;">
<s:if test="actionErrors.size()>0 || actionMessages.size()>0 || fieldErrors.size()>0">
    <div id="SystemErrorMessage" style="top: 20px">
        <s:actionerror/>
        <s:actionmessage/>
        <s:fielderror/>
    </div>
</s:if>

<div class="framestyle" style="width:98%;padding: 0pt 10pt 10pt 10pt;">
    <s:form name="theform" method="post" theme="simple">
        <s:hidden name="tsysGroup.groupid" id="wid"/>

        <fieldset>
            <table width="100%" border="0" align="center">
                <tr>
                    <td width="3%">&nbsp;</td>
                    <td align="center" width="35%">用户组名称：
                        <s:select id="superGroupid" name="tsysGroupSub.superGroupid" list="getGroup()" listKey="id"
                                  listValue="caption" headerKey="" headerValue="-----请选择-----"/> <label
                                style="color:red">*</label></td>
                    <td align="center">状态：
                        <s:select name="tsysGroup.state" list="#{'1':'启用','0':'禁用'}" listKey="key" listValue="value"/>
                    </td>
                </tr>
            </table>
            <table width="96%" border="0" align="center">
                <tr>
                    <td height="1" style="background-color: silver"></td>
                </tr>
            </table>
            <table id="userRightCtrl_group" width="100%" border="0" align="center">
                <tr>
                    <td align="right">可操作组：</td>
                    <td width="75%" align="left"><s:checkboxlist name="groupSubs_id" value="%{groupSubs_id}"
                                                                 list="getGroup()" listKey="id"
                                                                 listValue="caption"/></td>
                    <td width="11%"></td>
                </tr>
            </table>
        </fieldset>

        <table width="100%" border="0" align="center">
            <tr>
                <td colspan="7">&nbsp;</td>
            </tr>
            <tr align="center" valign="middle">
                <td colspan="30">&nbsp;</td>
                <td height="30" colspan="7">

                    <ul class="btn_gn">
                        <li><a href="#" title="保存" onClick="dosave()"><span>保存</span></a></li>

                        <li><a href="#" title="关闭" onclick="parent.closeInputWindow()"><span>关闭</span></a></li>
                    </ul>
                </td>
            </tr>
        </table>


    </s:form>
</div>
</body>
</html>
